package com.smile.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ToString
@TableName("feisuan_drone")
public class FeisuanDrone implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("drone_name")
    private String droneName;

    @TableField("drone_brand")
    private String droneBrand;

    @TableField("drone_model")
    private String droneModel;

    @TableField("drone_sn")
    private String droneSn;

    @TableField("image_url")
    private String imageUrl;

    @TableField("total_task_time")
    private Long totalTaskTime;

    @TableField("task_count")
    private Long taskCount;

    @TableField("total_task_distance")
    private Long totalTaskDistance;

    @TableField("user_id")
    private Long userId;

    /**
     * 1. 作业中 2. 待命 3. 离线
     */
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("modify_time")
    private LocalDateTime modifyTime;

    @TableField("delete_status")
    private Boolean deleteStatus;

    @TableField("organization_id")
    private Long organizationId;

    @TableField("media_upload_time")
    private LocalDateTime mediaUploadTime;

    @TableField("device_model_key")
    private String deviceModelKey;

}
